import request from '@/utils/request'

// 列表
export function tenant_queryPage(data) {
  return request({
    url: '/tenant/queryPage',
    method: 'post',
    data: data
  })
}

// 删除
export function tenant_delete(id) {
  return request({
    url: '/tenant/delete/' + id,
    method: 'delete',
  })
}

// 新增
export function tenant_insert(data) {
  return request({
    url: '/tenant/insert',
    method: 'post',
    data: data
  })
}

// 编辑
export function tenant_update(data) {
  return request({
    url: '/tenant/update',
    method: 'post',
    data: data
  })
}

// 租户查询文章接口
export function tenant_query_art(tenantId) {
  return request({
    url: '/tenant/query-art/'+tenantId,
    method: 'get',
  })
}

// 租户修改文章接口
export function tenant_update_art(data) {
  return request({
    url: '/tenant/update-art',
    method: 'post',
    data: data
  })
}